package day06;

import java.util.Scanner;

public class MethodDemo {
    public static void main(String[] args) {
//        say(intSc(),stringSc());
//        sayhello(stringSc(),intSc());
        say("张望舒",200);
        say(10,"111");
        getprint();

    }
    //输出大家好我叫***今年***岁了
    public static void say(String name,int age){
        System.out.println("大家好我叫"+name+"今年"+age+"岁了");
    }
    //输出语句
    public static void say(int timenum,String str){
        for (int i = 0; i < timenum; i++) {
            System.out.println(str);
        }
    }
    //输入string
    public static String stringSc(){
        System.out.println("请输入");
        Scanner sc = new Scanner(System.in);
        String num = sc.nextLine();
        return num;
    }
    //输入int
    public static int intSc(){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入整型数字");
        int num = sc.nextInt();
        return num;
    }
    //输出语句
    public static void getprint(int a){
        System.out.println(a+"你是怪物啊");
    }
    public static void getprint(String b){
        System.out.println(b+"你是怪物啊");
    }
    public static void getprint(double c){
        System.out.println(c+"你是怪物啊");
    }
    public static void getprint(long a){
        System.out.println(a+"你是怪物啊");
    }
    public static void getprint(char a){
        System.out.println(a+"你是怪物啊");
    }
    public static void getprint(float a){
        System.out.println(a+"你是怪物啊");
    }
    public static void getprint(){
        System.out.println("你是怪物啊");
    }
}
